
/*code data for asian participants*/

/*code and drop non-latinos*/

gen latino=0
recode latino(0=1) if Q1==3
tab latino

drop if latino==0

/*treatments*/

gen foreigner=0
recode foreigner(0=1) if m1==2

tab foreigner

/*pre-treatment covariates*/

gen mexican=0
recode mexican(0=1) if Q2==13
tab mexican

gen age=(Q10+17)
summ age

gen female=0
recode female(0=1) if Q11==1
tab female

gen usborn=0
recode usborn(0=1) if Q12==1
tab usborn 

gen liberal=(Q13-1)/6
summ liberal

summ mexican age female usborn liberal if foreigner==1

tab mexican foreigner, chi2
tab usborn foreigner, chi2
ttest age, by(foreigner)
tab female foreigner, chi2
ttest Q13, by(foreigner)

reg foreigner mexican age female usborn liberal
test mexican age female usborn liberal

probit foreigner mexican age female usborn liberal
test mexican age female usborn liberal


